"""
@name : 选择结构
@author : wenyao
@projectname: sanchuanglianxi
"""

# import math
# a = int(input("请输入边长a:"))
# b = int(input("请输入边长b:"))
# c = int(input("请输入边长c:"))
# if a>0 and b>0 and c>0:
#     if a+b >c and a+c>b and b+c >a :
#         p =(a+b+c)/2
#         s = math.sqrt(p*(p-a)*(p-b)*(p-c))
#         print("面积为：{}".format(s))
#     else:
#         print("两边长之和小于或等于第三边，输入不合法")
# else:
#     print("边长输入不合法")
#
# d = "恒大雅苑| 车位| 12.95平"
# f = "山水湾别墅| 328平"
# g = "农业大学"
# h=""
# #如果字符串中有"车位"  h="车位"
# #如果字符窜中有""别墅  h=别墅
# #如果字符串中两个都没有 h="无"
#
# h = "车位" if "车位" in g else "别墅"  if "别墅" in g else "无"
# print(h)

# >>> for i in range(1,11):
# ...    if i % 2 :
# ...      print(i)


# str1 = input("请输入一个字符串:")
# count = ""
# for i in str1:
#     if i.isupper():
#         count += "1"
#     else:
#         count += "0"
# print("输入字符串为：{}，转化为{}".format(str1,count))

# for i in range(1,4):
#     name = input("input name:")
#     pwd = input("input pwd:")
#
#     if name == "root" and pwd == "123456":
#         print("successfully")
#         break
#     else:
#         print("failure")

# count = 1
# while count < 4 :  #第一次循环之后 count == 2
#     name = input("input name:")
#     pwd = input("input pwd:")
#
#     if name == "root" and pwd == "123456":
#         print("successfully")
#         break
#     else:
#         print("failure")
#     count = count + 1

# import time
# while True:
#     print("haha")
#     time.sleep(2)

# >>> for x in range(1,6):
# ...    print("x is {}".format(x))
# ...    for y in range(1,4):
# ...       if y == 2:
# ...          break
# ...       else:
# ...          print("y is {}".format(y))
# ...
# x is 1
# y is 1
# x is 2
# y is 1
# x is 3
# y is 1
# x is 4
# y is 1
# x is 5
# y is 1


for x in range(1,6):
    print("x is {}".format(x))
    for y in range(1,4):
       if y == 2:
          continue
       print("y is {}".format(y))